package com.http.demo;

import org.apache.http.HttpResponse;


public class Client {
	  public static String execute(Request request) throws Exception {
		  if(request.getMethod().equals(Method.GET)){
			  return HttpRequest.HttpRequestGet(request.getUrl(), request.getFormBody(), request.getTimeout());
		  }else{
			  return HttpRequest.HttpRequestPost(request.getUrl(), request.getFormBody(), request.getTimeout());
		  }
		  
	  }
}
